package com.liuzy.ioc;

/**
 * 
 * @author liuzy
 * @version 2015年5月13日
 */
public class Test {
	
	public static void main(String[] args) {
		BeanFactory.init("config.xml");
		
		JavaBean javaBean1 = (JavaBean) BeanFactory.getBean("javaBean");
		System.out.println("userName=" + javaBean1.getUserName());
		System.out.println("password=" + javaBean1.getPassword());
		
		JavaBean javaBean2 = (JavaBean) BeanFactory.getBean(JavaBean.class);
		System.out.println("userName=" + javaBean2.getUserName());
		System.out.println("password=" + javaBean2.getPassword());
		
	}
}
